package com.internetCafes.spms.web.customer.model.user;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 用户区域信息分页-返回参数
 */
@Data
@Accessors(chain = true)
public class EntUserAreaPagingRes {

    /*
    {
        "id":1,
        "name":"张三",
        "saleList":[
            {
                "cityName":"杭州市",
                "areaList":[
                    {
                        "areaName":"拱墅区",
                        "dayAmount":3
                    },
                    {
                        "areaName":"拱墅区",
                        "dayAmount":3
                    }
                ]
            },
            {
                "cityName":"杭州市",
                "areaList":[
                    {
                        "areaName":"拱墅区",
                        "dayAmount":3
                    },
                    {
                        "areaName":"拱墅区",
                        "dayAmount":3
                    }
                ]
            }
        ]
    }
     */

    /**
     * id
     */
    private Long id;

    /**
     * 用户名
     */
    private String nickName;

    /**
     * 姓名
     */
    private String name;

    /**
     * 区域列表
     */
    private List<SaleArea> saleList;


    /**
     * 区域类
     */
    @Data
    @Accessors(chain = true)
    public class SaleArea {

        /**
         * 城市名称
         */
        private String cityName;

        /**
         * 区域列表
         */
        private List<AreaInfo> areaList;

        /**
         * 区域信息
         */
        @Data
        public class AreaInfo {

            /**
             * 区域id
             */
            private Long id;

            /**
             * 区域名称
             */
            private String areaName;

            /**
             * 剩余天数
             */
            private String dayAmount;
        }
    }
}
